import { interTable } from "@b/model/base/type";
import { List } from "../model/base/list";
import { EQUIPMENT } from "@b/model/enum";

export class Zhuanzhen extends List {
    constructor() {
        super()
        const dateNow = new Date()
        const date = new Date(Date.now() - 2592000000)
        this.url.getlist = '/v1/bigscreen/GetTransferTreatOrders'
        this.search_key = {
            Time: [date, dateNow]
        }
        this.title = '双向转诊情况（近30日）'
        this.labels = new Map<string, interTable>([['patientName', {
            prop: 'patientName',
            label: '患者姓名',
            width: 100
        }], ['diagnosisName', {
            prop: 'diagnosisName',
            label: '初步诊断'
        }], ['examName', {
            prop: 'examName',
            label: '转诊类别',
            formatter: (p, d, value) => EQUIPMENT.get(value) || '上转检查检验'
        }], ['transferOrgName', {
            prop: 'transferOrgName',
            label: '转诊机构'
        }], ['tranferDoctorName', {
            prop: 'tranferDoctorName',
            label: '转诊医生',
            width: 100
        }], ['confirmTime', {
            prop: 'confirmTime',
            label: '接诊时间'
        }], ['receiveOrgName', {
            prop: 'receiveOrgName',
            label: '接诊机构',
            formatter: (p, d, value) => value + '医共办'
        }], ['receiveDoctorName', {
            prop: 'receiveDoctorName',
            label: '接诊医生',
            width: 100
        }]])
    }
}